package com.mima.minaserver;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

import com.mima.minaserver.server.IOTServer;

@SpringBootApplication
@EnableCaching
public class MinaserverApplication {

	@Autowired
	private IOTServer iotServer;

	public static void main(String[] args) {
		SpringApplication.run(MinaserverApplication.class, args);
	}

	@PostConstruct
	public void init() {
		iotServer.startUDPServer();
	}
	
}
